local M = {}

local sbar = { "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" }

-- 模仿滚动条
M.show_sb = function()
    local curr_line = vim.api.nvim_win_get_cursor(0)[1]
    local lines = vim.api.nvim_buf_line_count(0)
    local i = math.floor((curr_line - 1) / lines * #sbar) + 1
    return string.rep(sbar[i], 2)
end
return M
-- EOP

